package com.swjd.dao;

import com.swjd.pojo.Type;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TypeMapper {
    List<Type> selectAllOne(@Param("tName") String tName);//查询所有类型(一对多)

    List<Type> selectAllDuo(@Param("tName") String tName);//查询所有类型(多对一)

    int deleteByPrimaryKey(Integer typeID);

    int insert(Type record);

    int insertSelective(Type record);

    Type selectByPrimaryKey(Integer typeID);

    int updateByPrimaryKeySelective(Type record);

    int updateByPrimaryKey(Type record);
}